/**
 * 
 */
package com.kelaite.procurement.constants;

/**
 * @author think
 *
 */
public enum CurrencySignal {

	CNY(0, "￥"), USD(1, "$");

	private int val;

	private String desc;

	private CurrencySignal(int val, String desc) {

		this.val = val;
		this.desc = desc;
	}

	public int getVal() {

		return val;
	}

	public void setVal(int val) {

		this.val = val;
	}

	public String getDesc() {

		return desc;
	}

	public void setDesc(String desc) {

		this.desc = desc;
	}

	public static CurrencySignal getCurrencySignal(int input) {

		for (CurrencySignal entity : values()) {
			if (input == entity.getVal()) {
				return entity;
			}
		}
		return null;
	}
}
